package com.wms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.time.LocalDateTime;

/**
 * 定时盘点任务明细
 * @TableName tb_stocktaking_task_details
 */
@TableName(value = "tb_stocktaking_task_details")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TbStocktakingTaskDetails {
    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 类型(1 仓库，2 库区， 3 库位)
     */
    private Integer category;

    /**
     * 目标ID
     */
    @TableField(value = "target_id")
    private Integer targetId;

    /**
     * 关联定时任务ID
     */
    @TableField(value = "stocktaking_task_id")
    private Long stocktakingTaskId;

    /**
     * SaaS标识
     */
    @TableField(value = "saas_id")
    private String saasId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建人账号
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 修改人账号
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 是否删除  1 未删除  2 已删除
     */
    @TableField(value = "is_del")
    private Integer isDel;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
    